package com.example.xpvideo.service;

import com.example.xpvideo.entity.LsSeckillGoods;
import com.example.xpvideo.entity.LsSeckillTime;
import com.example.xpvideo.entity.PageResult;
import com.example.xpvideo.entity.ResponseResult;
import com.example.xpvideo.entity.req.AuditReq;
import com.example.xpvideo.entity.req.InsertSeckillTime;
import com.example.xpvideo.entity.req.SecckillGoodsReq;
import com.example.xpvideo.entity.req.UpdateReq;
import com.example.xpvideo.entity.res.SeckillGoodsDetail;
import com.example.xpvideo.entity.res.SeckillGoodsRes;
import com.example.xpvideo.exception.ErrorException;

import java.util.List;

public interface SeckillGoodsService {
    ResponseResult<PageResult<List<SeckillGoodsRes>>> list(SecckillGoodsReq secckillGoodsReq) throws ErrorException;
    ResponseResult<SeckillGoodsDetail> detail(Integer id) throws ErrorException;
    ResponseResult<Object> insertTime(InsertSeckillTime insertSeckillTime) throws ErrorException;
    ResponseResult<Object> deleteTime(UpdateReq updateReq) throws ErrorException;
    ResponseResult<PageResult<List<LsSeckillTime>>> timeList()throws ErrorException;
    ResponseResult<Object> update(LsSeckillGoods lsSeckillGoods) throws ErrorException;
    ResponseResult<Object> delete(UpdateReq updateReq) throws ErrorException;
    ResponseResult<Object> audit(AuditReq auditReq) throws ErrorException;



}
